import React from 'react';
import { Icon } from 'antd';
import styles from './index.less';

export default function BoxRemove({ children, onRemove }) {
    return (
        <div className={styles.wrap}>
            <Icon className={styles.icon} theme="filled" type="close-circle" onClick={onRemove} />
            {children}
        </div>
    );
}
